package com.tdam.CommunicationManager;

import android.app.Activity;
import android.content.SharedPreferences;
import android.os.Bundle;
import android.preference.Preference;
import android.preference.Preference.OnPreferenceClickListener;
import android.preference.PreferenceActivity;
import android.preference.PreferenceManager;
import android.widget.Toast;

public class UserPreferences extends PreferenceActivity
{
    String contactsOrder;
    String historyFilter;
//    String ringtonePreference;
//    String secondEditTextPreference;
//    String customPref;

	
	@Override
    protected void onCreate(Bundle savedInstanceState) 
    {
    	super.onCreate(savedInstanceState);
        addPreferencesFromResource(R.xml.user_preferences);

    }	
    
//	@Override
//    protected void onStart()
//	{
//		super.onStart();
//		getPrefs();
//	}
//    private void getPrefs() {
//            // Get the xml/preferences.xml preferences
//            SharedPreferences prefs = PreferenceManager
//                            .getDefaultSharedPreferences(getBaseContext());
//           CheckboxPreference = prefs.getBoolean("checkboxPref", true);
//            contactsOrder = prefs.getString("lstContactsOrder",getString(R.string.alphabeticAscendent));
//            editTextPreference = prefs.getString("editTextPref",
//                            "Nothing has been entered");
//            ringtonePreference = prefs.getString("ringtonePref",
//                            "DEFAULT_RINGTONE_URI");
//            secondEditTextPreference = prefs.getString("SecondEditTextPref",
//                            "Nothing has been entered");
//            // Get the custom preference
//            SharedPreferences mySharedPreferences = getSharedPreferences(
//                            "myCustomSharedPrefs", Activity.MODE_PRIVATE);
//            customPref = mySharedPreferences.getString("myCusomPref", "");
//    }    
//    
    public String getContactOrder()
    {
    	return contactsOrder;
    }
    
    public String getHistoryFilter()
    {
    	return historyFilter;
    }
    
}
